package com.qiangesoft.im.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qiangesoft.im.entity.ImMessageReceiver;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 群用户消息关系 Mapper 接口
 * </p>
 *
 * @author qiangesoft
 * @since 2023-08-23
 */
public interface ImMessageReceiverMapper extends BaseMapper<ImMessageReceiver> {

    /**
     * 置为已读
     *
     * @param userId
     * @param chatId
     * @param messageId
     */
    void updateRead(@Param("userId") Long userId, @Param("chatId") Long chatId, @Param("messageId") Long messageId);
}
